package helloworld;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;


//import org.springframework.boot.orm.jpa.EntityScan;

/**
 * Created by admin on 2016/11/1.
 */
@EnableDiscoveryClient
@EnableTransactionManagement
@Configuration
@ComponentScan(basePackages="helloworld")
@EnableAutoConfiguration
@EntityScan(basePackages="helloworld.model")
@EnableJpaRepositories(basePackages="helloworld.dao")
@EnableOAuth2Sso
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class application {
    public static void main(String[] args)
    {
        SpringApplication.run(application.class,args);
    }



}
